﻿/*****************************************************************************  

 Version: 0.1
 Website: http://www.visuagile.com/
 
 Copyright (c) Yoganand R. All rights reserved.
 For continued development and updates, visit http://yogsbreath.net
 
 ******************************************************************************/

using System;
using System.Collections;
using System.Collections.Generic;
using NHibernate;
using Spring.Data.NHibernate.Support;

using VisualAgile.IDAL;
using VisualAgile.Model;
using Spring.Data.NHibernate;
using NHibernate.Engine;

namespace VisualAgile.DAL
{
    public class ActualsDao : BaseDao<Actual>, IActualsDao
    {
        protected override HibernateTemplate getBaseDAO()
        {
            return HibernateTemplate;
        }

        public IList FindByTask(string TaskId)
        {
            return HibernateTemplate.Find("from Actual where TaskID = ?", TaskId);            
        }

        public IList FindByLabel(string LabelId)
        {
            return HibernateTemplate.Find("from Actual where LabelID = ?", LabelId);
        }
    }
}